package com.hmall.mapper;

import com.hmall.model.ShopShares;
import com.hmall.util.MyMapper;
import com.hmall.vo.ShopShareVo;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

@Repository
public interface ShopSharesMapper extends MyMapper<ShopShares> {
    List<ShopShareVo> selectByKeyword(@Param("keyword") String keyword, @Param("pageStart") Integer pageStart, @Param("pageSize") Integer pageSize, @Param("type") String type);

    Integer selectCountByKeyword(@Param("keyword")String keyword,@Param("type") String type);

    ShopShares selectById(@Param("sharesId") Integer sharesId);
}